/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.bo;

import org.ipti.br.tag.dao.PeriodFacade;
import org.ipti.br.tag.entity.Period;
import java.io.Serializable;
import java.util.List;
import javax.inject.Inject;
import javax.ejb.Stateless;

/**
 *
 * @author root
 */
@Stateless
public class PeriodBO implements Serializable {

    @Inject
    private PeriodFacade periodDAO;

    public PeriodFacade getPeriodDAO() {
        return periodDAO;
    }

    public void create(Period period) {
        getPeriodDAO().create(period);
    }

    public void edit(Period period) {
        getPeriodDAO().edit(period);
    }

    public void remove(Period period) {
        getPeriodDAO().remove(period);
    }

    public Period find(Object id) {
        return getPeriodDAO().find(id);
    }

    public List<Period> findAll() {
        return getPeriodDAO().findAll();
    }

    public void editForSynchronization(Period period) {
        getPeriodDAO().editForSynchronization(period);
    }

    public List<Period> findAllOrder() {
        return getPeriodDAO().findAllOrder();
    }
}
